package src.com.atguigu02.trycatchfinally;

import org.junit.Test;

/**
 * @author BuTang
 * @create 14:32
 */
public class FinallyTest {
    @Test
    public void test1() {
        try {
            String str = "123";
            int i = Integer.parseInt(str);
            System.out.println(i);
        } catch (NumberFormatException e) {
            e.printStackTrace();
        }
        finally {
            System.out.println("结束");
        }
    }

}
